dax: Avoid ABI change in 4.17.6
authorBen Hutchings <ben@decadent.org.uk>
Thu, 12 Jul 2018 00:02:13 +0000 (01:02 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 20 Jul 2018 21:08:27 +0000 (22:08 +0100)
commit20797a14bc2adaeb40eba48263a62a90260f5b15
tree35f39ed0bd49eb9a9c8b0974ea1fea04c2866adc
parent8c867b0aab8be77cd23f9897e4745c2486bc8349
dax: Avoid ABI change in 4.17.6

The return type and first parameter type for bdev_dax_supported() and
__bdev_dax_supported() were changed by commits ba23cba9b3bd "fs: allow
per-device dax status checking for filesystems" and 80660f20252d "dax:
change bdev_dax_supported() to support boolean returns".

Avoid an ABI break by renaming the new version of
__bdev_dax_supported() and reintroducing the old version as a wrapper
for it.  Add a #define so that the old version is hidden from the API,
i.e. newly built modules must use the new API.

Gbp-Pq: Topic debian
Gbp-Pq: Name dax-avoid-abi-change-in-4.17.6.patch
drivers/dax/super.c
include/linux/dax.h